package com.definesys.smecrailtransit.service.LogService;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by xupeizuo on 2017/3/2.
 */

public class ExceptionBean extends RealmObject implements Serializable {

    @PrimaryKey
    private String uuid; //日志的UUID
    @SerializedName("appUser")
    private String appUser;
    @SerializedName("appName")
    private String appName;
    @SerializedName("crashCode")
    private String exceptionCode;//日志的类型 (崩溃，卡顿，错误，网络请求失败)
    @SerializedName("crashMsg")
    private String exceptionMsg;//错误的简要描述
    @SerializedName("crashLog")
    private String exceptionStack;//日志的堆栈数据
    @SerializedName("crashTime")
    private String creationDate;//创建时间
    private String submitStatus;//日志的上传状态
    @SerializedName("appVersion")
    private String appVersion;//日志上对应的版本
    @SerializedName("appChannel")
    private String appChannel;//产生日志的app的渠道
    @SerializedName("isDebug")
    private String isDebug;//APP是否是在DEBUG模式
    @SerializedName("IMEI")
    private String deviceUuid;//当前设备的uuid
    @SerializedName("deviceInfo")
    private String deviceInfo;//当前的状况信息(手机型号，网络状况，电池情况，内存情况，是否有当前操作的权限
    //保留字段
    private String textattribute1;
    private String textattribute2;
    private String textattribute3;
    private String textattribute4;
    private String textattribute5;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getAppUser() {
        return appUser;
    }

    public void setAppUser(String appUser) {
        this.appUser = appUser;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(String exceptionCode) {
        this.exceptionCode = exceptionCode;
    }

    public String getExceptionMsg() {
        return exceptionMsg;
    }

    public void setExceptionMsg(String exceptionMsg) {
        this.exceptionMsg = exceptionMsg;
    }

    public String getExceptionStack() {
        return exceptionStack;
    }

    public void setExceptionStack(String exceptionStack) {
        this.exceptionStack = exceptionStack;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public String getSubmitStatus() {
        return submitStatus;
    }

    public void setSubmitStatus(String submitStatus) {
        this.submitStatus = submitStatus;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getAppChannel() {
        return appChannel;
    }

    public void setAppChannel(String appChannel) {
        this.appChannel = appChannel;
    }

    public String getIsDebug() {
        return isDebug;
    }

    public void setIsDebug(String isDebug) {
        this.isDebug = isDebug;
    }

    public String getDeviceUuid() {
        return deviceUuid;
    }

    public void setDeviceUuid(String deviceUuid) {
        this.deviceUuid = deviceUuid;
    }

    public String getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public String getTextattribute1() {
        return textattribute1;
    }

    public void setTextattribute1(String textattribute1) {
        this.textattribute1 = textattribute1;
    }

    public String getTextattribute2() {
        return textattribute2;
    }

    public void setTextattribute2(String textattribute2) {
        this.textattribute2 = textattribute2;
    }

    public String getTextattribute3() {
        return textattribute3;
    }

    public void setTextattribute3(String textattribute3) {
        this.textattribute3 = textattribute3;
    }

    public String getTextattribute4() {
        return textattribute4;
    }

    public void setTextattribute4(String textattribute4) {
        this.textattribute4 = textattribute4;
    }

    public String getTextattribute5() {
        return textattribute5;
    }

    public void setTextattribute5(String textattribute5) {
        this.textattribute5 = textattribute5;
    }

    @Override
    public String toString() {
        return "ExceptionBean{" +
                "deviceInfo='" + deviceInfo + '\'' +
                ", uuid='" + uuid + '\'' +
                ", appUser='" + appUser + '\'' +
                ", appName='" + appName + '\'' +
                ", exceptionCode='" + exceptionCode + '\'' +
                ", exceptionMsg='" + exceptionMsg + '\'' +
                ", exceptionStack='" + exceptionStack + '\'' +
                ", creationDate='" + creationDate + '\'' +
                ", submitStatus='" + submitStatus + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", appChannel='" + appChannel + '\'' +
                ", isDebug='" + isDebug + '\'' +
                ", deviceUuid='" + deviceUuid + '\'' +
                '}';
    }
}
